package com.ecmap.hongyun.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @className:Setting.java
 * @classDescription:配置：包括介绍，招聘，联系方式
 * @author: DANIEL DENG
 * @createTime: 2013-6-29
 *
 */
@Entity
@Table(name = "t_setting", catalog = "hongyun")
public class Setting implements java.io.Serializable {

	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3031524080645171141L;
	
	// Fields

	private Long id;
	private Integer settingCode;
	private String settingName;
	private String summary;
	private String content;
	private Integer settingStatus;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public Setting() {
	}

	/** full constructor */
	public Setting(Integer settingCode, String settingName, String summary,
			String content, Integer settingStatus, Date createTime,
			Date updateTime) {
		this.settingCode = settingCode;
		this.settingName = settingName;
		this.summary = summary;
		this.content = content;
		this.settingStatus = settingStatus;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "SETTING_CODE")
	public Integer getSettingCode() {
		return this.settingCode;
	}

	public void setSettingCode(Integer settingCode) {
		this.settingCode = settingCode;
	}

	@Column(name = "SETTING_NAME", length = 128)
	public String getSettingName() {
		return this.settingName;
	}

	public void setSettingName(String settingName) {
		this.settingName = settingName;
	}

	@Column(name = "SUMMARY", length = 1024)
	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	@Column(name = "CONTENT", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "SETTING_STATUS")
	public Integer getSettingStatus() {
		return this.settingStatus;
	}

	public void setSettingStatus(Integer settingStatus) {
		this.settingStatus = settingStatus;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 10)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "UPDATE_TIME", length = 10)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}